home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / dev / src / expat-src.lha / expat-1.95.2 / xmlwf / wfcheck.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-28  |  704 b   |  39 lines

  1.  
  2. #include <stddef.h>
  3.  
  4. enum WfCheckResult {
  5.   wellFormed,
  6.   noMemory,
  7.   syntaxError,
  8.   noElements,
  9.   invalidToken,
  10.   unclosedToken,
  11.   partialChar,
  12.   tagMismatch,
  13.   duplicateAttribute,
  14.   junkAfterDocElement,
  15.   paramEntityRef,
  16.   undefinedEntity,
  17.   recursiveEntityRef,
  18.   asyncEntity,
  19.   badCharRef,
  20.   binaryEntityRef,
  21.   attributeExternalEntityRef,
  22.   misplacedXmlPi,
  23.   unknownEncoding,
  24.   incorrectEncoding
  25. };
  26.  
  27. enum EntityType {
  28.   documentEntity,
  29.   generalTextEntity
  30. };
  31.  
  32. enum WfCheckResult wfCheck(enum EntityType entityType,
  33.                const char *s, size_t n,
  34.                const char **errorPtr,
  35.                unsigned long *errorLineNumber,
  36.                unsigned long *errorColNumber);
  37. const char *wfCheckMessage(enum WfCheckResult);
  38.  
  39.